import requests


def get_git_token(host_url: str) -> str:
    token_url = f"{host_url}/oauth/token"
    token_request_body = {
        'grant_type': 'password',
        'username': 'guoxudong',
        'password': 'Guoxd#com@',
        'scope': 'api'
    }
    response = requests.post(token_url, data=token_request_body)
    if response.status_code == 200:
        return response.json().get('access_token', '')
    else:
        return ""
